<template>
<h1>El-下拉选框组件</h1>
  <el-select placeholder="请选择您喜欢的城市"
  style="width:500px;"
  v-model="city">

    <el-option label="上海" value="sh"></el-option>
    <el-option label="北京" value="bj"></el-option>
    <el-option label="重庆" value="cq"></el-option>
    <el-option label="杭州" value="hz"></el-option>
    <el-option label="成都" value="cd"></el-option>

  </el-select>
  <h4>您选择的城市是：{{city}}</h4>

</template>


<script setup>

import {ref} from "vue";

const city = ref('');
</script>



<style scoped>

</style>